jremote jbase5.2.1

com.jbase.jremote.jca.inflow
Class InboundRequestHandler

java.lang.Object
  extended by com.jbase.jremote.jca.inflow.InboundRequestHandler
All Implemented Interfaces:
RequestHandler

public class InboundRequestHandler
extends Object
implements RequestHandler


Constructor Summary
InboundRequestHandler(List<EndpointAdapter> endpoints, RequestListenerService service)
           
 
Method Summary
 int getActiveTransactions()
          Get the active transactions for this request handler.
 List<EndpointAdapter> getEndpoints()
           
 javax.resource.spi.work.ExecutionContext getExecutionContext(String sessionId)
           
 RequestListenerService getListenerService()
          Return the listener service.
 void handleClose(ClientHandle handle)
          Called when a client close event occurs.
 byte[] handleRequest(ClientHandle handle, byte[] requestBytes)
          Called when a client has sent a request.
 void handleResponse(ClientHandle handle, byte[] responseBytes)
          Send a response to the supplied client (sessionId).
 void handleTimeout(ClientHandle handle)
          Called when a select times out waiting for client keys.
protected  InboundRequest readRequest(JBaseObjectReader reader)
           
 javax.resource.spi.work.ExecutionContext removeExecutionContext(String sessionId)
           
 void setExecutionContext(String sessionId, javax.resource.spi.work.ExecutionContext ec)
           
protected  void writeResponse(JBaseObjectWriter writer, JBaseSerializable response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InboundRequestHandler

public InboundRequestHandler(List<EndpointAdapter> endpoints,
                             RequestListenerService service)
Method Detail

getEndpoints

public List<EndpointAdapter> getEndpoints()

getListenerService

public RequestListenerService getListenerService()
Description copied from interface: RequestHandler

Return the listener service. The listener service is effectively a root context.

Specified by:
getListenerService in interface RequestHandler

handleClose

public void handleClose(ClientHandle handle)
Description copied from interface: RequestHandler

Called when a client close event occurs.

Specified by:
handleClose in interface RequestHandler

handleTimeout

public void handleTimeout(ClientHandle handle)
Description copied from interface: RequestHandler

Called when a select times out waiting for client keys.

Specified by:
handleTimeout in interface RequestHandler

handleRequest

public byte[] handleRequest(ClientHandle handle,
                            byte[] requestBytes)
Description copied from interface: RequestHandler

Called when a client has sent a request.

Specified by:
handleRequest in interface RequestHandler

handleResponse

public void handleResponse(ClientHandle handle,
                           byte[] responseBytes)
                    throws RequestHandlerException
Description copied from interface: RequestHandler

Send a response to the supplied client (sessionId).

Specified by:
handleResponse in interface RequestHandler
Throws:
RequestHandlerException

readRequest

protected InboundRequest readRequest(JBaseObjectReader reader)
                              throws IOException
Throws:
IOException

writeResponse

protected void writeResponse(JBaseObjectWriter writer,
                             JBaseSerializable response)
                      throws IOException
Throws:
IOException

getExecutionContext

public javax.resource.spi.work.ExecutionContext getExecutionContext(String sessionId)

removeExecutionContext

public javax.resource.spi.work.ExecutionContext removeExecutionContext(String sessionId)

setExecutionContext

public void setExecutionContext(String sessionId,
                                javax.resource.spi.work.ExecutionContext ec)

getActiveTransactions

public int getActiveTransactions()

Get the active transactions for this request handler.

Returns:

jremote jbase5.2.1

Copyright © 2016 TEMENOS. All Rights Reserved.