isImmutable() 공개 추상적인 메소드

public abstract isImmutable ( ) : bool
리턴 bool
예제 #1
0
파일: Log.cs 프로젝트: nomit007/f4
        public static void addHandler(Func func)
        {
            if (!func.isImmutable())
            throw NotImmutableErr.make("handler must be immutable").val;

              lock (lockObj)
              {
            List temp = new List(Sys.FuncType, m_handlers).add(func);
            m_handlers = (Func[])temp.toArray(new Func[temp.sz()]);
              }
        }
예제 #2
0
파일: Log.cs 프로젝트: syatanic/fantom
        public static void addHandler(Func func)
        {
            if (!func.isImmutable())
            {
                throw NotImmutableErr.make("handler must be immutable").val;
            }

            lock (lockObj)
            {
                List temp = new List(Sys.FuncType, m_handlers).add(func);
                m_handlers = (Func[])temp.toArray(new Func[temp.sz()]);
            }
        }
예제 #3
0
        public static void makeCoalescing_(Actor self, ActorPool pool, Func k, Func c, Func r)
        {
            if (k != null && !k.isImmutable())
            {
                throw NotImmutableErr.make("Coalescing toKey func not immutable: " + k).val;
            }

            if (c != null && !c.isImmutable())
            {
                throw NotImmutableErr.make("Coalescing coalesce func not immutable: " + c).val;
            }

            make_(self, pool, r);
            self.m_queue = new CoalescingQueue(k, c);
        }
예제 #4
0
        public static void make_(Actor self, ActorPool pool, Func receive)
        {
            // check pool
            if (pool == null)
            {
                throw NullErr.make("pool is null").val;
            }

            // check receive method
            if (receive == null && self.@typeof().qname() == "concurrent::Actor")
            {
                throw ArgErr.make("must supply receive func or subclass Actor").val;
            }
            if (receive != null && !receive.isImmutable())
            {
                throw NotImmutableErr.make("Receive func not immutable: " + receive).val;
            }

            // init
            self.m_pool    = pool;
            self.m_receive = receive;
            self.m_queue   = new Queue();
        }
예제 #5
0
파일: Actor.cs 프로젝트: nomit007/f4
        public static void makeCoalescing_(Actor self, ActorPool pool, Func k, Func c, Func r)
        {
            if (k != null && !k.isImmutable())
            throw NotImmutableErr.make("Coalescing toKey func not immutable: " + k).val;

              if (c != null && !c.isImmutable())
            throw NotImmutableErr.make("Coalescing coalesce func not immutable: " + c).val;

              make_(self, pool, r);
              self.m_queue = new CoalescingQueue(k, c);
        }
예제 #6
0
파일: Actor.cs 프로젝트: nomit007/f4
        public static void make_(Actor self, ActorPool pool, Func receive)
        {
            // check pool
              if (pool == null)
            throw NullErr.make("pool is null").val;

              // check receive method
              if (receive == null && self.@typeof().qname() == "concurrent::Actor")
            throw ArgErr.make("must supply receive func or subclass Actor").val;
              if (receive != null && !receive.isImmutable())
            throw NotImmutableErr.make("Receive func not immutable: " + receive).val;

              // init
              self.m_pool = pool;
              self.m_receive = receive;
              self.m_queue = new Queue();
        }