com.netflix.config
Interface PollListener


public interface PollListener

The listener to be called upon when AbstractPollingScheduler completes a polling.


Nested Class Summary
static class PollListener.EventType
           
 
Method Summary
 void handleEvent(PollListener.EventType eventType, PollResult lastResult, java.lang.Throwable exception)
          This method is called when the listener is invoked after a polling.
 

Method Detail

handleEvent

void handleEvent(PollListener.EventType eventType,
                 PollResult lastResult,
                 java.lang.Throwable exception)
This method is called when the listener is invoked after a polling.

Parameters:
eventType - type of the event
lastResult - the last poll result, null if the poll fails or there is no result
exception - any Throwable caught in the last poll, null if the poll is successful