public EndpointSession(DefaultEndpointClient client) { this.client = client; this.flushing = new ThreadSafe.Boolean(false); this.closed = new ThreadSafe.Boolean(false); this.flushingOp = new ThreadSafe.AtomicReference<WriteOp>(null); this.sessionFuture = new ThreadSafe.AtomicReference<IConnectFuture>(null); this.opQueue = new BlockingQueue<WriteOp>(client.Config.EndpointSessionSendBufferSize); }
public DefaultClientChannelInboundHandler( CommandProcessorManager cmdProcessorManager, Arch.CMessaging.Client.MetaEntity.Entity.Endpoint endpoint, EndpointSession endpointSession, DefaultEndpointClient endpointClient, CoreConfig config) { this.cmdProcessorManager = cmdProcessorManager; this.endpoint = endpoint; this.endpointSession = endpointSession; this.endpointClient = endpointClient; this.config = config; }
public WriteOp(ICommand command, int timeoutInMills, DefaultEndpointClient client) { this.client = client; this.command = command; this.expireTime = client.ClockService.Now() + timeoutInMills; }