- Enclosing class:
EventListener
public static interface EventListener.Factory
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of theEventListenerfor a specificNewCall.
-
Method Details
-
create
Creates an instance of theEventListenerfor a specificNewCall. The returnedEventListenerinstance will be used for the lifecycle of thecall.This method is invoked after the
callis created. SeeHttpd.newCall(Request). It is an error for implementations to issue any mutating operations on thecallinstance in this method.- Parameters:
call- The call information.- Returns:
- The listener.
-