Package cz.o2.proxima.direct.io.http
Class HttpAccessor
- java.lang.Object
-
- cz.o2.proxima.core.storage.AbstractStorage
-
- cz.o2.proxima.core.storage.AbstractStorage.SerializableAbstractStorage
-
- cz.o2.proxima.direct.io.http.HttpAccessor
-
- All Implemented Interfaces:
AbstractDataAccessor
,DataAccessor
,java.io.Serializable
public class HttpAccessor extends AbstractStorage.SerializableAbstractStorage implements DataAccessor
Accessor for HTTP(s) and websocket URLs.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cz.o2.proxima.core.storage.AbstractStorage
AbstractStorage.SerializableAbstractStorage
-
-
Constructor Summary
Constructors Constructor Description HttpAccessor(EntityDescriptor entityDesc, java.net.URI uri, java.util.Map<java.lang.String,java.lang.Object> cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CommitLogReader>
getCommitLogReader(Context context)
Retrieve commit log reader (if applicable).java.util.Optional<AttributeWriterBase>
getWriter(Context context)
Retrieve writer (if applicable).-
Methods inherited from class cz.o2.proxima.core.storage.AbstractStorage
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.storage.internal.AbstractDataAccessor
getUri
-
Methods inherited from interface cz.o2.proxima.direct.core.DataAccessor
getBatchLogReader, getCachedView, getRandomAccessReader, isAcceptable
-
-
-
-
Constructor Detail
-
HttpAccessor
public HttpAccessor(EntityDescriptor entityDesc, java.net.URI uri, java.util.Map<java.lang.String,java.lang.Object> cfg)
-
-
Method Detail
-
getWriter
public java.util.Optional<AttributeWriterBase> getWriter(Context context)
Description copied from interface:DataAccessor
Retrieve writer (if applicable).- Specified by:
getWriter
in interfaceDataAccessor
- Parameters:
context
- the serializable context provided by repository- Returns:
- optional
AttributeWriterBase
of this accessor
-
getCommitLogReader
public java.util.Optional<CommitLogReader> getCommitLogReader(Context context)
Description copied from interface:DataAccessor
Retrieve commit log reader (if applicable).- Specified by:
getCommitLogReader
in interfaceDataAccessor
- Parameters:
context
- serializable context provided by repository- Returns:
- optional @{link CommitLogReader} of this accessor
-
-