public class FeedbackChannelImpl extends java.lang.Object implements FeedbackChannel
Constructor and Description |
---|
FeedbackChannelImpl(AgentContext agentContext,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
sendFeedback()
Synchronizes the current feedback with the server(s), ensuring that those servers have the same (snapshot of)
feedback data as the agent currently has.
|
void |
stop() |
void |
write(int type,
java.util.Map<java.lang.String,java.lang.String> properties)
Logs a new message to this feedback channel.
|
public FeedbackChannelImpl(AgentContext agentContext, java.lang.String name) throws java.io.IOException
java.io.IOException
public void stop() throws java.io.IOException
java.io.IOException
public void sendFeedback() throws RetryAfterException, java.io.IOException
FeedbackChannel
sendFeedback
in interface FeedbackChannel
RetryAfterException
java.io.IOException
public void write(int type, java.util.Map<java.lang.String,java.lang.String> properties) throws java.io.IOException
FeedbackChannel
write
in interface FeedbackChannel
type
- the type of the log-event to write;properties
- the actual contents of the message to write, cannot be null
.java.io.IOException