public interface MatcherEndpoint extends Agent
MatcherEndpoint defines the interface for classes that can receive a Bid and send a
PriceUpdate, containing a Price based on that Bid. A MatcherEndpoint can be linked
with zero or more AgentEndpoint instances. These are linked by a Session.Agent.Status| Modifier and Type | Method and Description |
|---|---|
void |
agentEndpointDisconnected(Session session)
|
void |
connectToAgent(Session session)
Connects this
MatcherEndpoint instance to an AgentEndpoint. |
void |
handleBidUpdate(Session session,
BidUpdate bidUpdate)
|
getAgentId, getStatus, setContextvoid connectToAgent(Session session)
MatcherEndpoint instance to an AgentEndpoint.session - the Session that will link this AgentEndpoint with a MatcherEndpoint.java.lang.IllegalArgumentException - when this matcher is not connected to the clustervoid agentEndpointDisconnected(Session session)
session - the Session that used to link this MatcherEndpoint with an AgentEndpoint.void handleBidUpdate(Session session, BidUpdate bidUpdate)
session - The session linking this MatcherEndpoint with a specific AgentEndpoint instance.bidUpdate - The new BidUpdate.