|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.data.InvocationMarshaller<T>
public class InvocationMarshaller<T extends ClientObject>
Provides a base from which all invocation service marshallers extend. Handles functionality common to all marshallers.
| Nested Class Summary | |
|---|---|
static class |
InvocationMarshaller.ConfirmMarshaller
Defines a marshaller for the standard InvocationService.ConfirmListener. |
static class |
InvocationMarshaller.ListenerMarshaller
Provides a base from which invocation listener marshallers extend. |
static class |
InvocationMarshaller.ResultMarshaller
Defines a marshaller for the standard InvocationService.ResultListener. |
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService |
|---|
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener |
| Field Summary | |
|---|---|
protected int |
_invCode
The invocation service code assigned to this service when it was registered on the server. |
protected InvocationDirector |
_invdir
A reference to the invocation director with whom we interoperate. |
protected int |
_invOid
The oid of the invocation object, where invocation service requests are sent. |
| Constructor Summary | |
|---|---|
InvocationMarshaller()
|
|
| Method Summary | |
|---|---|
int |
getInvocationCode()
Returns the code assigned to this marshaller. |
void |
init(int invOid,
int invCode,
InvocationDirector invDir)
Initializes this invocation marshaller instance with the requisite information to allow it to operate in the wide world. |
void |
readObject(ObjectInputStream in)
A custom reader method for Streamable. |
protected void |
sendRequest(Client client,
int methodId,
Object[] args)
Deprecated. use client-argument-free version. |
protected void |
sendRequest(Client client,
int methodId,
Object[] args,
Transport transport)
Deprecated. use client-argument-free version. |
protected void |
sendRequest(int methodId,
Object[] args)
Called by generated invocation marshaller code; packages up and sends the specified invocation service request. |
protected void |
sendRequest(int methodId,
Object[] args,
Transport transport)
Called by generated invocation marshaller code; packages up and sends the specified invocation service request. |
void |
setInvocationOid(int invOid)
Sets the invocation oid to which this marshaller should send its invocation service requests. |
static void |
setNoResponse(InvocationService.InvocationListener listener)
A convenience method to indicate that the listener is not going to be responded-to, and that this is ok. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _invOid
protected int _invCode
protected transient InvocationDirector _invdir
readObject(com.threerings.io.ObjectInputStream) when we're read in from the network.
| Constructor Detail |
|---|
public InvocationMarshaller()
| Method Detail |
|---|
public void init(int invOid,
int invCode,
InvocationDirector invDir)
public void setInvocationOid(int invOid)
public int getInvocationCode()
public static void setNoResponse(InvocationService.InvocationListener listener)
public void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
Streamable.
IOException
ClassNotFoundExceptionpublic String toString()
toString in class Object
protected void sendRequest(int methodId,
Object[] args)
protected void sendRequest(int methodId,
Object[] args,
Transport transport)
@Deprecated
protected void sendRequest(Client client,
int methodId,
Object[] args)
@Deprecated
protected void sendRequest(Client client,
int methodId,
Object[] args,
Transport transport)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||