Package io.split.client.impressions
Class AsynchronousImpressionListener
java.lang.Object
io.split.client.impressions.AsynchronousImpressionListener
- All Implemented Interfaces:
ImpressionListener
public class AsynchronousImpressionListener extends Object implements ImpressionListener
A wrapper around an ImpressionListener provided by the customer. The purpose
of the wrapper is to protect the SplitClient from any slow down happening due
to the client's ImpressionListener.
- Author:
- adil
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.split.client.impressions.ImpressionListener
ImpressionListener.FederatedImpressionListener, ImpressionListener.NoopImpressionListener -
Constructor Summary
Constructors Constructor Description AsynchronousImpressionListener(ImpressionListener delegate, ExecutorService executor) -
Method Summary
Modifier and Type Method Description static AsynchronousImpressionListenerbuild(ImpressionListener delegate, int capacity)voidclose()MUST NOT throw any exceptionsvoidlog(Impression impression)Log this impression to the listener.
-
Constructor Details
-
Method Details
-
build
-
log
Description copied from interface:ImpressionListenerLog this impression to the listener. This method MUST NOT throw any exception- Specified by:
login interfaceImpressionListener
-
close
public void close()Description copied from interface:ImpressionListenerMUST NOT throw any exceptions- Specified by:
closein interfaceImpressionListener
-