public class SessionEventHandler
extends java.lang.Object
SessionManager
events to listeners.Constructor and Description |
---|
SessionEventHandler(java.lang.Object owner)
Command line interface
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(MultipartyNegotiationEventListener listener)
Add a listener to this logger
|
void |
logMessage(java.lang.String message,
java.lang.Object... params)
Deprecated.
|
void |
logSessionEnded(Session session,
Bid agreement,
java.util.List<NegotiationPartyInternal> parties)
General session log.
|
void |
offered(java.util.List<NegotiationPartyInternal> parties,
Bid bid,
Bid agreed,
Session session)
some offer was placed.
|
public SessionEventHandler(java.lang.Object owner)
owner
- The object creating this class. Used for reference in log
messagespublic void addListener(MultipartyNegotiationEventListener listener)
listener
- The class that should receive messages from this logger@Deprecated public void logMessage(java.lang.String message, java.lang.Object... params)
message
- The message to log, can be a format stringparams
- format arguments in case message is a format string.public void offered(java.util.List<NegotiationPartyInternal> parties, Bid bid, Bid agreed, Session session)
MultipartyNegotiationOfferEvent
containing the details.parties
- The parties involved in the offerbid
- the bid that was offeredagreed
- the agreement bid, or null if no agreement reached yet.session
- the sessionpublic void logSessionEnded(Session session, Bid agreement, java.util.List<NegotiationPartyInternal> parties)
session
- The session to logagreement
- The agreement if any (NULL otherwise)