Package io.pravega.client.segment.impl
Class SegmentMetadataClientFactoryImpl
- java.lang.Object
-
- io.pravega.client.segment.impl.SegmentMetadataClientFactoryImpl
-
- All Implemented Interfaces:
SegmentMetadataClientFactory
public class SegmentMetadataClientFactoryImpl extends java.lang.Object implements SegmentMetadataClientFactory
-
-
Constructor Summary
Constructors Constructor Description SegmentMetadataClientFactoryImpl(Controller controller, ConnectionPool cp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentMetadataClient
createSegmentMetadataClient(Segment segment, DelegationTokenProvider tokenProvider)
Opens an existing segment for metadata operations.
-
-
-
Constructor Detail
-
SegmentMetadataClientFactoryImpl
@ConstructorProperties({"controller","cp"}) public SegmentMetadataClientFactoryImpl(Controller controller, ConnectionPool cp)
-
-
Method Detail
-
createSegmentMetadataClient
public SegmentMetadataClient createSegmentMetadataClient(Segment segment, DelegationTokenProvider tokenProvider)
Description copied from interface:SegmentMetadataClientFactory
Opens an existing segment for metadata operations. This operation will fail if the segment does not exist. This operation may be called multiple times on the same segment from the same client (i.e., there can be concurrent metadata clients in the same process space).- Specified by:
createSegmentMetadataClient
in interfaceSegmentMetadataClientFactory
- Parameters:
segment
- The segment to create a metadata client for.tokenProvider
- TheDelegationTokenProvider
instance to be used for obtaining a delegation token.- Returns:
- New instance of SegmentMetadataClient for the provided segment.
-
-