@Override public void beginTask(Runnable task) { // Invoke process to execute the task this.executeContext.invokeProcess(this.sslTaskFlowIndex, task, null, 0); }
/** * Triggers a {@link ProcessState} to service the {@link Connection}. * * @param connectionHandler * {@link TcpConnectionHandler} for the {@link ConnectException}. */ public void serviceConnection(TcpConnectionHandler connectionHandler) { // Invokes the process to service the connection this.executeContext.invokeProcess(this.newConnectionFlowIndex, connectionHandler, connectionHandler, 0); }
@Override public synchronized void logout(HttpLogoutRequest logoutRequest) { // Clear the security this.security = null; // New managed object (stop overwrite of asynchronous listener) // (Not used for execution but need to provide an instance) HttpAuthenticationManagedObject<S, C> executeManagedObject = new HttpAuthenticationManagedObject<S, C>(null, null); // Trigger logout this.executeContext.invokeProcess(Flows.LOGOUT, new TaskLogoutContextImpl(logoutRequest, this.connection, this.session), executeManagedObject, 0); }
/** * Runs the loop for checking for expiring. */ private synchronized void expireCheckLoop() { // Undertake an expire this.expire(); // Determine if continue checking if (this.executeContext == null) { return; // stopping, so no further checking } // Setup for next expire check this.executeContext.invokeProcess(Flows.EXPIRE, null, new CometServiceManagedObject(this), this.expireCheckInterval); }
/** * Services the {@link HttpRequest}. * * @param handler * {@link HttpConnectionHandler}. * @param httpManagedObject * {@link HttpManagedObject} for the {@link HttpRequest}. */ public void serviceHttpRequest(HttpConnectionHandler handler, HttpManagedObject httpManagedObject) { // Invoke processing of the HTTP managed object this.executeContext.invokeProcess(this.requestHandlingFlowIndex, httpManagedObject.getServerHttpConnection(), httpManagedObject, 0, httpManagedObject.getEscalationHandler()); }
instance.context.invokeProcess(FlowKeys.SERVICE, null, managedObject, 0, managedObject);
this.executeContext.invokeProcess(Flows.AUTHENTICATE, new TaskAuthenticateContextImpl(credentials, authenticationRequest), executeManagedObject, 0); isCompleteRequest = false; // context will complete