Class BaseTcpSource
java.lang.Object
com.arpnetworking.metrics.common.sources.BaseSource
com.arpnetworking.metrics.common.sources.ActorSource
com.arpnetworking.metrics.common.sources.BaseTcpSource
- All Implemented Interfaces:
com.arpnetworking.commons.observer.Observable
,Source
- Direct Known Subclasses:
TcpLineSource
Base source that listens on a tcp port. Subclasses should set appropriate
defaults on the abstract builder.
- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
BaseTcpSource.Builder<B extends BaseTcpSource.Builder<B,
S>, S extends BaseTcpSource> BaseTcpSourceBaseTcpSource.Builder
implementation. -
Constructor Summary
ModifierConstructorDescriptionprotected
BaseTcpSource
(BaseTcpSource.Builder<?, ?> builder) Protected constructor. -
Method Summary
Methods inherited from class com.arpnetworking.metrics.common.sources.ActorSource
createProps, getActor, getActorSystem, start
Methods inherited from class com.arpnetworking.metrics.common.sources.BaseSource
attach, detach, getMetricSafeName, getName, notify, toLogValue, toString
-
Constructor Details
-
BaseTcpSource
Protected constructor.- Parameters:
builder
- Instance ofBaseTcpSource.Builder
.
-
-
Method Details
-
stop
public void stop()Description copied from interface:Source
Called to allow the source to clean-up. No further records should be produced.- Specified by:
stop
in interfaceSource
- Overrides:
stop
in classActorSource
-