org.wso2.carbon.databridge.agent.endpoint
Class DataEndpointGroup
java.lang.Object
org.wso2.carbon.databridge.agent.endpoint.DataEndpointGroup
- All Implemented Interfaces:
- DataEndpointFailureCallback
public class DataEndpointGroup
- extends Object
- implements DataEndpointFailureCallback
This class holds the endpoints associated within a group. Also it has a queue
to hold the list of events that needs to be processed by the endpoints with
provided the load balancing, or failover configuration.
DataEndpointGroup
public DataEndpointGroup(DataEndpointGroup.HAType haType,
DataEndpointAgent agent)
addDataEndpoint
public void addDataEndpoint(DataEndpoint dataEndpoint)
tryPublish
public void tryPublish(org.wso2.carbon.databridge.commons.Event event)
throws EventQueueFullException
- Throws:
EventQueueFullException
tryPublish
public void tryPublish(org.wso2.carbon.databridge.commons.Event event,
long timeoutMS)
throws EventQueueFullException
- Throws:
EventQueueFullException
publish
public void publish(org.wso2.carbon.databridge.commons.Event event)
tryResendEvents
public void tryResendEvents(List<org.wso2.carbon.databridge.commons.Event> events)
- Description copied from interface:
DataEndpointFailureCallback
- Notifies the The failed events, and should try to send the events again successfully.
In case if this couldn't send the events, then the unsuccessful events list needs to be returned back.
- Specified by:
tryResendEvents in interface DataEndpointFailureCallback
- Parameters:
events - List failed events
toString
public String toString()
- Overrides:
toString in class Object
shutdown
public void shutdown()
Copyright © 2015 WSO2. All rights reserved.