|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.util.GatewayEventCallbackArgument
public class GatewayEventCallbackArgument
Class GatewayEventCallbackArgument is a wrapper on a callback
arg plus the id of the GatewayHub making the request. It is
created during a batch update request so that the hub id is passed to the
GatewayHub so that events are not re-distributed back to the
originating GatewayHub, but are distributed to other
GatewayHubs. The original callback arg is wrapped by this one
and replaced in the event sent to CacheListener, CacheWriter and CacheLoader.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.gemstone.gemfire.DataSerializable |
|---|
DataSerializable.Replaceable |
| Constructor Summary | |
|---|---|
GatewayEventCallbackArgument()
No arg constructor for DataSerializable. |
|
GatewayEventCallbackArgument(GatewayEventCallbackArgument geca)
Creates a copy of the given GatewayEventCallbackArgument that shares invariant state with the original. |
|
GatewayEventCallbackArgument(Object originalCallbackArg)
Constructor. |
|
GatewayEventCallbackArgument(Object originalCallbackArg,
String originatingGatewayHubId,
List originalRecipientGateways)
Constructor. |
|
| Method Summary | |
|---|---|
void |
fromData(DataInput in)
Reads the state of this object as primitive data from the given DataInput. |
Object |
getOriginalCallbackArg()
Returns the original callback argument. |
String |
getOriginatingGatewayHubId()
Returns the id of the originating GatewayHub making the
request. |
Set |
getRecipientGateways()
Returns the list of Gateway s to which the event has been
sent. |
void |
initializeRecipientGateways(List originalRecipientGateways)
Initialize the original set of recipient Gateways. |
void |
setOriginatingGatewayHubId(String originatingGatewayHubId)
Sets the originating GatewayHub id |
void |
setRecipientGateways(Set recipientGateways)
Sets the list of Gateway s to which the event has been sent |
void |
toData(DataOutput out)
Writes the state of this object as primitive data to the given DataOutput. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GatewayEventCallbackArgument()
public GatewayEventCallbackArgument(Object originalCallbackArg)
originalCallbackArg - The original callback argument set by the caller or null if there
was not callback arg
public GatewayEventCallbackArgument(Object originalCallbackArg,
String originatingGatewayHubId,
List originalRecipientGateways)
originalCallbackArg - The original callback argument set by the caller or null if there
was not callback argoriginatingGatewayHubId - The id of the originating GatewayHub making the
requestoriginalRecipientGateways - The list of Gateway s to which the event has been
originally sentpublic GatewayEventCallbackArgument(GatewayEventCallbackArgument geca)
geca - the object to be copied| Method Detail |
|---|
public Object getOriginalCallbackArg()
public String getOriginatingGatewayHubId()
GatewayHub making the
request.
GatewayHub making the
requestpublic void setOriginatingGatewayHubId(String originatingGatewayHubId)
GatewayHub id
originatingGatewayHubId - The originating GatewayHub idpublic Set getRecipientGateways()
Gateway s to which the event has been
sent.
Gateway s to which the event has been
sentpublic void setRecipientGateways(Set recipientGateways)
Gateway s to which the event has been sent
recipientGateways - The list of Gateway s to which the event has been
sentpublic void initializeRecipientGateways(List originalRecipientGateways)
Gateways.
originalRecipientGateways - The original recipient Gateways.
public void toData(DataOutput out)
throws IOException
DataSerializableDataOutput.
toData in interface DataSerializableIOException - A problem occurs while writing to out
public void fromData(DataInput in)
throws IOException,
ClassNotFoundException
DataSerializableDataInput.
fromData in interface DataSerializableIOException - A problem occurs while reading from in
ClassNotFoundException - A class could not be loaded while reading from
inpublic String toString()
toString in class Object
|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||