public class STAFHandleInterface extends java.lang.Object implements HandleInterface
Modifier and Type | Field and Description |
---|---|
(package private) com.ibm.staf.STAFHandle |
handle |
(package private) java.lang.String |
handleId |
Constructor and Description |
---|
STAFHandleInterface()
Must setHandleId and register before using the Handle.
|
STAFHandleInterface(java.lang.String handleId)
If no STAFException is thrown then the Handle is registered.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.staf.STAFResult |
acceptQueueMessage(java.lang.String message) |
int |
getHandle() |
com.ibm.staf.STAFResult |
getQueueMessage(int timeout) |
void |
register() |
com.ibm.staf.STAFResult |
sendQueueMessage(java.lang.String target,
java.lang.String message) |
void |
setHandleId(java.lang.String handleId)
Must register before using the Handle.
|
java.lang.String |
submit(java.lang.String where,
java.lang.String handler,
java.lang.String request) |
com.ibm.staf.STAFResult |
submit2(java.lang.String where,
java.lang.String handler,
java.lang.String request) |
void |
unRegister() |
public STAFHandleInterface()
public STAFHandleInterface(java.lang.String handleId) throws com.ibm.staf.STAFException
com.ibm.staf.STAFException
public void setHandleId(java.lang.String handleId)
setHandleId
in interface HandleInterface
public void register() throws com.ibm.staf.STAFException
register
in interface HandleInterface
com.ibm.staf.STAFException
public java.lang.String submit(java.lang.String where, java.lang.String handler, java.lang.String request) throws com.ibm.staf.STAFException
submit
in interface HandleInterface
com.ibm.staf.STAFException
public com.ibm.staf.STAFResult submit2(java.lang.String where, java.lang.String handler, java.lang.String request)
submit2
in interface HandleInterface
public com.ibm.staf.STAFResult sendQueueMessage(java.lang.String target, java.lang.String message) throws com.ibm.staf.STAFException
sendQueueMessage
in interface HandleInterface
target
- -- destination handle name for the message.message
- -- the message to send.com.ibm.staf.STAFException
public com.ibm.staf.STAFResult acceptQueueMessage(java.lang.String message)
acceptQueueMessage
in interface HandleInterface
public com.ibm.staf.STAFResult getQueueMessage(int timeout)
getQueueMessage
in interface HandleInterface
public int getHandle()
getHandle
in interface HandleInterface
public void unRegister() throws com.ibm.staf.STAFException
unRegister
in interface HandleInterface
com.ibm.staf.STAFException
Copyright © SAS Institute. All Rights Reserved.