Package cz.o2.proxima.direct.io.pubsub
Class PubSubStorage
- java.lang.Object
-
- cz.o2.proxima.direct.io.pubsub.PubSubStorage
-
- All Implemented Interfaces:
AbstractDataAccessorFactory<DirectDataOperator,DataAccessor>
,DataAccessorFactory
,java.io.Serializable
@Stable @AutoService(DataAccessorFactory.class) public class PubSubStorage extends java.lang.Object implements DataAccessorFactory
ADataAccessorFactory
for PubSub.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cz.o2.proxima.core.storage.internal.AbstractDataAccessorFactory
AbstractDataAccessorFactory.Accept
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CFG_DEFAULT_ALLOWED_TIMESTAMP_SKEW
static java.lang.String
CFG_DEFAULT_MAX_ACK_DEADLINE
static java.lang.String
CFG_DEFAULT_SUBSCRIPTION_ACK_DEADLINE
static java.lang.String
CFG_DEFAULT_SUBSCRIPTION_AUTO_CREATE
static java.lang.String
CFG_DEFAULT_WATERMARK_ESTIMATE_DURATION
-
Constructor Summary
Constructors Constructor Description PubSubStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractDataAccessorFactory.Accept
accepts(java.net.URI uri)
Check if this factory can create accessors for given URI.DataAccessor
createAccessor(DirectDataOperator operator, AttributeFamilyDescriptor family)
Create the accessor for giveAttributeFamilyDescriptor
.void
setup(Repository repo)
Setup the factory for using givenRepository
.
-
-
-
Field Detail
-
CFG_DEFAULT_MAX_ACK_DEADLINE
public static final java.lang.String CFG_DEFAULT_MAX_ACK_DEADLINE
- See Also:
- Constant Field Values
-
CFG_DEFAULT_SUBSCRIPTION_AUTO_CREATE
public static final java.lang.String CFG_DEFAULT_SUBSCRIPTION_AUTO_CREATE
- See Also:
- Constant Field Values
-
CFG_DEFAULT_SUBSCRIPTION_ACK_DEADLINE
public static final java.lang.String CFG_DEFAULT_SUBSCRIPTION_ACK_DEADLINE
- See Also:
- Constant Field Values
-
CFG_DEFAULT_WATERMARK_ESTIMATE_DURATION
public static final java.lang.String CFG_DEFAULT_WATERMARK_ESTIMATE_DURATION
- See Also:
- Constant Field Values
-
CFG_DEFAULT_ALLOWED_TIMESTAMP_SKEW
public static final java.lang.String CFG_DEFAULT_ALLOWED_TIMESTAMP_SKEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
setup
public void setup(Repository repo)
Description copied from interface:AbstractDataAccessorFactory
Setup the factory for using givenRepository
.- Specified by:
setup
in interfaceAbstractDataAccessorFactory<DirectDataOperator,DataAccessor>
- Parameters:
repo
- the repository that will be used with the factory
-
createAccessor
public DataAccessor createAccessor(DirectDataOperator operator, AttributeFamilyDescriptor family)
Description copied from interface:AbstractDataAccessorFactory
Create the accessor for giveAttributeFamilyDescriptor
.- Specified by:
createAccessor
in interfaceAbstractDataAccessorFactory<DirectDataOperator,DataAccessor>
- Parameters:
operator
- operator to create the accessor forfamily
- attribute family descriptor- Returns:
AbstractDataAccessor
for given operator and family
-
accepts
public AbstractDataAccessorFactory.Accept accepts(java.net.URI uri)
Description copied from interface:AbstractDataAccessorFactory
Check if this factory can create accessors for given URI.- Specified by:
accepts
in interfaceAbstractDataAccessorFactory<DirectDataOperator,DataAccessor>
- Parameters:
uri
- the URI to create accessor for- Returns:
- acception mark
-
-