net.kano.joscar.snac
Class SnacRequestSentEvent

java.lang.Object
  extended bySnacRequestSentEvent

public class SnacRequestSentEvent
extends java.lang.Object

An event fired when an outgoing SNAC request is sent over a SNAC connection.


Constructor Summary
protected SnacRequestSentEvent(FlapProcessor flapProcessor, ClientSnacProcessor snacProcessor, SnacRequest request, long sentTime)
          Creates a new event with the given properties.
 
Method Summary
 FlapProcessor getFlapProcessor()
          Returns the FLAP processor on which the associated request was sent.
 SnacRequest getRequest()
          Returns the request that was sent.
 long getSentTime()
          Returns the time at which the associated request was sent.
 ClientSnacProcessor getSnacProcessor()
          Returns the SNAC processor on which the associated request was sent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnacRequestSentEvent

protected SnacRequestSentEvent(FlapProcessor flapProcessor,
                               ClientSnacProcessor snacProcessor,
                               SnacRequest request,
                               long sentTime)
Creates a new event with the given properties.

Parameters:
flapProcessor - the FLAP processor on which the request was sent
snacProcessor - the SNAC processor on which the request was sent
request - the request that was sent
sentTime - the time at which it was sent, in milliseconds since unix epoch
Method Detail

getFlapProcessor

public FlapProcessor getFlapProcessor()
Returns the FLAP processor on which the associated request was sent.

Returns:
the FLAP processor on which the associated request was sent

getSnacProcessor

public ClientSnacProcessor getSnacProcessor()
Returns the SNAC processor on which the associated request was sent.

Returns:
the SNAC processor on which the associated request was sent

getRequest

public SnacRequest getRequest()
Returns the request that was sent.

Returns:
the request that was sent

getSentTime

public long getSentTime()
Returns the time at which the associated request was sent. This is returned in the format returned by System.currentTimeMillis, in milliseconds since the unix epoch.

Returns:
the time at which the associated request was sent, in milliseconds since the unix epoch