com.googlecode.mobilityrpc.session.impl
Interface MobilitySessionInternal

All Superinterfaces:
MobilitySession
All Known Implementing Classes:
MobilitySessionImpl

public interface MobilitySessionInternal
extends MobilitySession

Internal interface used by the library, extends the public MobilitySession interface with methods for processing incoming requests, as required by the library.

Author:
Niall Gallagher

Method Summary
 void receiveExecutionResponse(ExecutionResponse executionResponse)
          Called when we receive an incoming ExecutionResponse object from a remote machine addressed to this session.
 void receiveIncomingExecutionRequest(ConnectionId connectionId, ExecutionRequest executionRequest)
          Called when we receive an incoming ExecutionRequest object from a remote machine addressed to this session.
 
Methods inherited from interface com.googlecode.mobilityrpc.session.MobilitySession
execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, getMobilityController, getSessionClassLoader, getSessionId, release
 

Method Detail

receiveIncomingExecutionRequest

void receiveIncomingExecutionRequest(ConnectionId connectionId,
                                     ExecutionRequest executionRequest)
Called when we receive an incoming ExecutionRequest object from a remote machine addressed to this session.

This method will submit this request to the session's thread pool for execution asynchronously. This method will return immediately.

Parameters:
connectionId - Indicates the connection from which we received the request
executionRequest - A request from a remote machine to execute a serialized object on this machine

receiveExecutionResponse

void receiveExecutionResponse(ExecutionResponse executionResponse)
Called when we receive an incoming ExecutionResponse object from a remote machine addressed to this session.

This method will look up and unblock the relevant thread which is waiting for the response to arrive.

Parameters:
executionResponse - A response from a remote machine for an execution request sent by a thread on this machine


Copyright © 2016. All rights reserved.