com.latencybusters.lbm
Class LBMRequest

java.lang.Object
  extended by com.latencybusters.lbm.LBMRequest

public class LBMRequest
extends java.lang.Object

LBM Request class.


Constructor Summary
LBMRequest()
          Instantiate an LBM Request object
LBMRequest(byte[] data, int dataLength)
          Instantiate an LBM Request object with a specified message data byte array and length.
 
Method Summary
 void addResponseCallback(LBMResponseCallback cb)
          Register a callback to be invoked when a response is received for this request.
 void addResponseCallback(LBMResponseCallback cb, java.lang.Object cbArg)
          Register a callback to be invoked when a response is received for this request.
 void close()
          Close this request.
 byte[] data()
          Get request data.
 void data(byte[] data, int dataLength)
          Set request data.
 int dataLength()
          Get request data length
protected  void finalize()
           
 void removeResponseCallback(LBMResponseCallback cb)
          Deregister a request response callback
 void removeResponseCallback(LBMResponseCallback cb, java.lang.Object cbArg)
          Deregister a request response callback
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LBMRequest

public LBMRequest()
Instantiate an LBM Request object


LBMRequest

public LBMRequest(byte[] data,
                  int dataLength)
Instantiate an LBM Request object with a specified message data byte array and length.

Parameters:
data - A byte array containing message data.
dataLength - An int representing the number of bytes in the message data.
Method Detail

finalize

protected void finalize()
                 throws LBMException
Overrides:
finalize in class java.lang.Object
Throws:
LBMException

close

public void close()
           throws LBMException
Close this request.

Warning: It is not safe to call this method from a context thread callback.

Throws:
LBMException - if any error occurs deleting the request.

data

public byte[] data()
Get request data.

Returns:
Byte array associated with this request

dataLength

public int dataLength()
Get request data length

Returns:
Length of data array associated with this request

data

public void data(byte[] data,
                 int dataLength)
Set request data.

Parameters:
data - Data byte array
dataLength - Length of data byte array

addResponseCallback

public void addResponseCallback(LBMResponseCallback cb)
Register a callback to be invoked when a response is received for this request.

Parameters:
cb - Object implementing the LBMResponseCallback interface
See Also:
LBMResponseCallback, removeResponseCallback(com.latencybusters.lbm.LBMResponseCallback)

addResponseCallback

public void addResponseCallback(LBMResponseCallback cb,
                                java.lang.Object cbArg)
Register a callback to be invoked when a response is received for this request.

Parameters:
cb - Object implementing the LBMResponseCallback interface
cbArg - Callback token object
See Also:
LBMResponseCallback, removeResponseCallback(com.latencybusters.lbm.LBMResponseCallback)

removeResponseCallback

public void removeResponseCallback(LBMResponseCallback cb)
Deregister a request response callback

Parameters:
cb - Previously registered callback object implementing the LBMResponseCallback interface
See Also:
LBMResponseCallback, addResponseCallback(com.latencybusters.lbm.LBMResponseCallback)

removeResponseCallback

public void removeResponseCallback(LBMResponseCallback cb,
                                   java.lang.Object cbArg)
Deregister a request response callback

Parameters:
cb - Previously registered callback object implementing the LBMResponseCallback interface
cbArg - Token for previously registered callback
See Also:
LBMResponseCallback, addResponseCallback(com.latencybusters.lbm.LBMResponseCallback)


All of the documentation and software included in this and any other Informatica Inc "Ultra Messaging" Release is Copyright (C) 2004-2014, Informatica Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted only as covered by the terms of a valid software license agreement with 29West Inc. Copyright © 2004-2014, Informatica, Inc. All Rights Reserved.