PageBoxLib
Class TokenCallbackImpl.Sender

java.lang.Object
  extended byPageBoxLib.TokenCallbackImpl.Sender
All Implemented Interfaces:
TokenSendIF
Enclosing class:
TokenCallbackImpl

class TokenCallbackImpl.Sender
extends java.lang.Object
implements TokenSendIF

Synchronous sender to use in callbacks.

Changes:


Field Summary
(package private)  java.lang.String archive
          Archive name
(package private)  boolean isSet
          True when the setSender method has been called.
(package private)  TokenCallbackImpl.RepositoryReg repReg
          TokenCallbackImpl.callbacks entry
(package private)  TokenCallbackIF tci
          Callback object
 
Constructor Summary
(package private) TokenCallbackImpl.Sender(java.lang.String archive, TokenCallbackImpl.RepositoryReg repReg, TokenCallbackIF tci)
          Constructor.
 
Method Summary
 boolean isRegistered()
          TokenSendIF method.
(package private)  int send(java.io.Serializable data)
          ActiveNaming's send.
 int send(java.lang.String type, java.lang.String target, java.io.Serializable data)
          TokenSendIF method.
private  int send2(java.lang.String type, java.lang.String target, java.io.Serializable data)
          Private send.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archive

java.lang.String archive
Archive name


repReg

TokenCallbackImpl.RepositoryReg repReg
TokenCallbackImpl.callbacks entry


tci

TokenCallbackIF tci
Callback object


isSet

boolean isSet
True when the setSender method has been called.

Constructor Detail

TokenCallbackImpl.Sender

TokenCallbackImpl.Sender(java.lang.String archive,
                         TokenCallbackImpl.RepositoryReg repReg,
                         TokenCallbackIF tci)
Constructor.

Parameters:
archive - archive name
repReg - TokenCallbackImpl.callbacks entry
tci - callback object
Method Detail

send

public int send(java.lang.String type,
                java.lang.String target,
                java.io.Serializable data)
TokenSendIF method. Send a message. We don't test the origin: all messages in msgList have this PageBox URL origin.

Specified by:
send in interface TokenSendIF
Parameters:
type - request type
target - target PageBox
data - payload
Returns:
correlation ID

send

int send(java.io.Serializable data)
ActiveNaming's send.

Parameters:
data - payload
Returns:
correlation ID

send2

private int send2(java.lang.String type,
                  java.lang.String target,
                  java.io.Serializable data)
Private send. Called by TokenSendIF.send and by ActiveNaming's send.

Parameters:
type - request type
target - target PageBox
data - payload
Returns:
correlation ID

isRegistered

public boolean isRegistered()
TokenSendIF method.

Specified by:
isRegistered in interface TokenSendIF
Returns:
true if the archive is registered (if the archive can receive answers)