eventstore
package eventstore
- Alphabetic
- By Inheritance
- eventstore
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait AbstractPersistentSubscriptionActor[T] extends Actor with ActorLogging
- trait AbstractSubscriptionActor[T] extends Actor with ActorLogging
-
class
AccessDeniedException extends EsException
- Annotations
- @SerialVersionUID()
- type ByteString = akka.util.ByteString
-
class
CannotEstablishConnectionException extends EsException
- Annotations
- @SerialVersionUID()
- sealed trait ClassTags[O, I] extends AnyRef
-
class
CommandNotExpectedException extends EsException
- Annotations
- @SerialVersionUID()
- sealed trait ConsumerStrategy extends AnyRef
-
case class
Content(value: ByteString = ByteString.empty, contentType: ContentType = ContentType.Binary) extends Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait ContentType extends AnyRef
- sealed trait CreatePersistentSubscriptionError extends RuntimeException with SystemError
- sealed trait DeletePersistentSubscriptionError extends RuntimeException with SystemError
-
case class
DeleteResult(logPosition: Position) extends Product with Serializable
Result type returned after deleting a stream.
Result type returned after deleting a stream.
- logPosition
The position of the write in the log
- Annotations
- @SerialVersionUID()
-
case class
DeleteStream(streamId: Id, expectedVersion: Existing = ExpectedVersion.Any, hard: Boolean = false, requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
DeleteStreamCompleted(position: Option[Exact] = None) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
-
class
EsConnection extends AnyRef
Maintains a full duplex connection to the EventStore
Maintains a full duplex connection to the EventStore
All operations are handled in a full async manner. Many threads can use an EsConnection at the same time or a single thread can make many asynchronous requests. To get the most performance out of the connection it is generally recommended to use it in this way.
- abstract class EsException extends RuntimeException with NoStackTrace
- implicit final class EsInt extends AnyVal
- implicit final class EsString extends AnyVal
- trait EsTransaction extends AnyRef
- case class EsTransactionForActor(transactionId: Long, actor: ActorRef)(implicit timeout: Timeout) extends EsTransaction with Product with Serializable
- sealed trait Event extends Ordered[Event]
-
case class
EventData(eventType: String, eventId: Uuid = randomUuid, data: Content = Content.Empty, metadata: Content = Content.Empty) extends Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
EventNotFoundException(streamId: Id, number: EventNumber) extends EsException with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait EventNumber extends Ordered[EventNumber]
-
case class
EventRecord(streamId: Id, number: Exact, data: EventData, created: Option[DateTime] = None) extends Event with Product with Serializable
- Annotations
- @SerialVersionUID()
- class EventStoreExtension extends Extension
- sealed trait EventStream extends AnyRef
- sealed trait ExpectedVersion extends AnyRef
- case class HttpSettings(uri: Uri = Uri("http://127.0.0.1:2113")) extends Product with Serializable
-
case class
IdentifyClient(version: Int, connectionName: Option[String]) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait In extends Message
- sealed trait InOut extends In with Out
-
case class
IndexedEvent(event: Event, position: Exact) extends Ordered[IndexedEvent] with Product with Serializable
- Annotations
- @SerialVersionUID()
-
class
InvalidOperationException extends EsException
- Annotations
- @SerialVersionUID()
- sealed trait Message extends AnyRef
-
case class
NonMetadataEventException(event: Event) extends EsException with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
NotAuthenticatedException(pack: PackOut) extends EsException with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
NotHandled(reason: Reason) extends RuntimeException with ServerError with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait OperationError extends RuntimeException with ServerError
-
case class
OperationTimeoutException extends EsException with Product with Serializable
OperationTimeoutException
OperationTimeoutException
- Annotations
- @SerialVersionUID()
- sealed trait Out extends Message with OutLike
- sealed trait OutLike extends AnyRef
- sealed trait OverflowStrategy extends AnyRef
- class PersistentSubscriptionActor extends AbstractPersistentSubscriptionActor[Event] with FSM[State, Data]
-
case class
PersistentSubscriptionSettings(resolveLinkTos: Boolean = false, startFrom: EventNumber = EventNumber.Last, extraStatistics: Boolean = false, messageTimeout: FiniteDuration = 30.seconds, maxRetryCount: Int = 500, liveBufferSize: Int = 500, readBatchSize: Int = 10, historyBufferSize: Int = 20, checkPointAfter: FiniteDuration = 2.seconds, minCheckPointCount: Int = 10, maxCheckPointCount: Int = 1000, maxSubscriberCount: Int = 0, consumerStrategy: ConsumerStrategy = ConsumerStrategy.RoundRobin) extends Product with Serializable
Represents the settings for persistent subscription
Represents the settings for persistent subscription
You can use eventstore.j.PersistentSubscriptionSettingsBuilder) from Java
- resolveLinkTos
Whether to resolve LinkTo events automatically
- startFrom
Where the subscription should start from, EventNumber
- extraStatistics
Whether or not in depth latency statistics should be tracked on this subscription.
- messageTimeout
The amount of time after which a message should be considered to be timedout and retried.
- maxRetryCount
The maximum number of retries (due to timeout) before a message get considered to be parked
- liveBufferSize
The size of the buffer listening to live messages as they happen
- readBatchSize
The number of events read at a time when paging in history
- historyBufferSize
The number of events to cache when paging through history
- checkPointAfter
The amount of time to try to checkpoint after
- minCheckPointCount
The minimum number of messages to checkpoint
- maxCheckPointCount
maximum number of messages to checkpoint if this number is a reached a checkpoint will be forced.
- maxSubscriberCount
The maximum number of subscribers allowed.
- consumerStrategy
The ConsumerStrategy to use for distributing events to client consumers.
- Annotations
- @SerialVersionUID()
- sealed trait Position extends Ordered[Position]
- case class ProjectionDetails(name: String, effectiveName: String, version: Int, epoch: Int, status: ProjectionStatus, stateReason: String, mode: ProjectionMode, writesInProgress: Int, readsInProgress: Int, progress: Double, bufferedEvents: Int) extends Product with Serializable
-
class
ProjectionException extends EsException
- Annotations
- @SerialVersionUID()
-
class
ProjectionsClient extends ProjectionsUrls
A client allowing to create, get the status and delete an existing projection.
-
trait
ProjectionsUrls extends AnyRef
The API miss documentation so I used the C# client as a starting point See : https://github.com/EventStore/EventStore/blob/release-v3.9.0/src/EventStore.ClientAPI/Projections/ProjectionsClient.cs
The API miss documentation so I used the C# client as a starting point See : https://github.com/EventStore/EventStore/blob/release-v3.9.0/src/EventStore.ClientAPI/Projections/ProjectionsClient.cs
- Attributes
- protected[this]
-
case class
ReadAllEvents(fromPosition: Position = Position.First, maxCount: Int = Settings.Default.readBatchSize, direction: ReadDirection = ReadDirection.Forward, resolveLinkTos: Boolean = Settings.Default.resolveLinkTos, requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
ReadAllEventsCompleted(events: List[IndexedEvent], position: Exact, nextPosition: Exact, direction: ReadDirection) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait ReadAllEventsError extends RuntimeException with ServerError
- sealed trait ReadDirection extends AnyRef
-
case class
ReadEvent(streamId: Id, eventNumber: EventNumber = EventNumber.First, resolveLinkTos: Boolean = Settings.Default.resolveLinkTos, requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
ReadEventCompleted(event: Event) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait ReadEventError extends RuntimeException with ServerError
-
case class
ReadStreamEvents(streamId: Id, fromNumber: EventNumber = EventNumber.First, maxCount: Int = Settings.Default.readBatchSize, direction: ReadDirection = ReadDirection.Forward, resolveLinkTos: Boolean = Settings.Default.resolveLinkTos, requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
ReadStreamEventsCompleted(events: List[Event], nextEventNumber: EventNumber, lastEventNumber: Exact, endOfStream: Boolean, lastCommitPosition: Long, direction: ReadDirection) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait ReadStreamEventsError extends RuntimeException with ServerError
-
case class
ResolvedEvent(linkedEvent: EventRecord, linkEvent: EventRecord) extends Event with Product with Serializable
- Annotations
- @SerialVersionUID()
-
class
RetriesLimitReachedException extends EsException
- Annotations
- @SerialVersionUID()
- implicit final class RichPartialFunction extends AnyVal
-
case class
ScavengeDatabaseCompleted(totalTime: FiniteDuration, totalSpaceSaved: Long) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait ScavengeError extends RuntimeException with SystemError
-
class
ScavengeFailedException extends EsException
- Annotations
- @SerialVersionUID()
- sealed trait ServerError extends RuntimeException with SystemError
-
class
ServerErrorException extends EsException
- Annotations
- @SerialVersionUID()
-
case class
Settings(address: InetSocketAddress = "127.0.0.1" :: 1113, connectionTimeout: FiniteDuration = 1.second, maxReconnections: Int = 100, reconnectionDelayMin: FiniteDuration = 250.millis, reconnectionDelayMax: FiniteDuration = 10.seconds, defaultCredentials: Option[UserCredentials] = Some(UserCredentials.DefaultAdmin), heartbeatInterval: FiniteDuration = 500.millis, heartbeatTimeout: FiniteDuration = 5.seconds, operationMaxRetries: Int = 10, operationTimeout: FiniteDuration = 30.seconds, resolveLinkTos: Boolean = false, requireMaster: Boolean = true, readBatchSize: Int = 500, bufferSize: Int = 100000, bufferOverflowStrategy: OverflowStrategy = OverflowStrategy.Fail, cluster: Option[ClusterSettings] = None, http: HttpSettings = HttpSettings(), serializationParallelism: Int = 8, serializationOrdered: Boolean = true, connectionName: Option[String] = Some("jvm-client")) extends Product with Serializable
- address
IP & port of Event Store
- connectionTimeout
The desired connection timeout
- maxReconnections
Maximum number of reconnections before backing off, -1 to reconnect forever
- reconnectionDelayMin
Delay before first reconnection
- reconnectionDelayMax
Maximum delay on reconnections
- defaultCredentials
The UserCredentials to use for operations where other UserCredentials are not explicitly supplied.
- heartbeatInterval
The interval at which to send heartbeat messages.
- heartbeatTimeout
The interval after which an unacknowledged heartbeat will cause the connection to be considered faulted and disconnect.
- operationMaxRetries
The maximum number of operation retries
- operationTimeout
The amount of time before an operation is considered to have timed out
- resolveLinkTos
Whether to resolve LinkTo events automatically
- requireMaster
Whether or not to require Event Store to refuse serving read or write request if it is not master
- readBatchSize
Number of events to be retrieved by client as single message
- bufferSize
The size of the buffer in element count
- bufferOverflowStrategy
Strategy that is used when elements cannot fit inside the buffer
- http
Url to access eventstore though the Http API
- serializationParallelism
The number of serialization/deserialization functions to be run in parallel
- serializationOrdered
Serialization done asynchronously and these futures may complete in any order, but results will be used with preserved order if set to true
- connectionName
Client identifier used to show a friendly name of client in Event Store.
- Annotations
- @SerialVersionUID()
-
class
StreamDeletedException extends EsException
- Annotations
- @SerialVersionUID()
-
case class
StreamEventAppeared(event: IndexedEvent) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
StreamNotFoundException(streamId: Id) extends EsException with Product with Serializable
- Annotations
- @SerialVersionUID()
- class StreamSubscriptionActor extends AbstractSubscriptionActor[Event]
- sealed trait SubscribeCompleted extends In
-
case class
SubscribeTo(stream: EventStream, resolveLinkTos: Boolean = Settings.Default.resolveLinkTos) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
SubscribeToAllCompleted(lastCommit: Long) extends SubscribeCompleted with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
SubscribeToStreamCompleted(lastCommit: Long, lastEventNumber: Option[Exact] = None) extends SubscribeCompleted with Product with Serializable
- Annotations
- @SerialVersionUID()
- class SubscriptionActor extends AbstractSubscriptionActor[IndexedEvent]
- sealed trait SubscriptionDropped extends RuntimeException with ServerError
- trait SubscriptionObserver[T] extends AnyRef
- class SubscriptionObserverActor[T] extends Actor
- trait SystemError extends RuntimeException with NoStackTrace with Serializable
- class TransactionActor extends Actor with ActorLogging
-
case class
TransactionCommit(transactionId: Long, requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
TransactionCommitCompleted(transactionId: Long, numbersRange: Option[Range] = None, position: Option[Exact] = None) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
TransactionStart(streamId: Id, expectedVersion: ExpectedVersion = ExpectedVersion.Any, requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
TransactionStartCompleted(transactionId: Long) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
TransactionWrite(transactionId: Long, events: List[EventData], requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
TransactionWriteCompleted(transactionId: Long) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
- sealed trait UpdatePersistentSubscriptionError extends RuntimeException with SystemError
-
case class
UserCredentials(login: String, password: String) extends Product with Serializable
- Annotations
- @SerialVersionUID()
- type Uuid = UUID
-
case class
WithCredentials(out: Out, credentials: UserCredentials) extends OutLike with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
WriteEvents(streamId: Id, events: List[EventData], expectedVersion: ExpectedVersion = ExpectedVersion.Any, requireMaster: Boolean = Settings.Default.requireMaster) extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
WriteEventsCompleted(numbersRange: Option[Range] = None, position: Option[Exact] = None) extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
-
case class
WriteResult(nextExpectedVersion: Exact, logPosition: Position) extends Product with Serializable
Result type returned after writing to a stream.
Result type returned after writing to a stream.
- nextExpectedVersion
The next expected version for the stream.
- logPosition
The position of the write in the log
- Annotations
- @SerialVersionUID()
-
class
WrongExpectedVersionException extends EsException
- Annotations
- @SerialVersionUID()
Value Members
- val ByteString: akka.util.ByteString.type
- val MaxBatchSize: Int
- def randomUuid: Uuid
- object AllStreamsPublisher
-
object
Authenticate extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
object
Authenticated extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
-
object
BadRequest extends RuntimeException with ServerError with Product with Serializable
- Annotations
- @SerialVersionUID()
- object ClassTags
-
object
ClientIdentified extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
-
object
ConsumerStrategy
System supported consumer strategies for use with persistent subscriptions.
- object Content extends Serializable
- object ContentType
- object CreatePersistentSubscriptionError extends Serializable
- object DeletePersistentSubscriptionError extends Serializable
- object EsConnection
- object EsTransaction
- object Event
- object EventData extends Serializable
- object EventNumber
- object EventRecord extends Serializable
- object EventStoreExtension extends ExtensionId[EventStoreExtension] with ExtensionIdProvider
- object EventStream
- object ExpectedVersion
- object HttpSettings extends Serializable
-
object
InvalidTransactionException extends EsException with Product with Serializable
- Annotations
- @SerialVersionUID()
-
object
LiveProcessingStarted extends Product with Serializable
- Annotations
- @SerialVersionUID()
-
object
NotAuthenticated extends RuntimeException with ServerError with Product with Serializable
- Annotations
- @SerialVersionUID()
- object NotHandled extends Serializable
- object OperationError extends Serializable
-
object
OperationTimedOut extends RuntimeException with SystemError with Product with Serializable
- Annotations
- @SerialVersionUID()
- object OverflowStrategy
- object PersistentSubscription
- object PersistentSubscriptionActor
- object PersistentSubscriptionSettings extends Serializable
-
object
Ping extends InOut with Product with Serializable
- Annotations
- @SerialVersionUID()
-
object
Pong extends InOut with Product with Serializable
- Annotations
- @SerialVersionUID()
- object Position
- object ProjectionDetails extends Serializable
- object ProjectionsClient
- object ReadAllEventsError extends Serializable
- object ReadDirection
- object ReadEvent extends Serializable
- object ReadEventError extends Serializable
- object ReadStreamEventsError extends Serializable
-
object
ScavengeDatabase extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
- object ScavengeError extends Serializable
-
object
ScavengeInProgressException extends EsException with Product with Serializable
- Annotations
- @SerialVersionUID()
- object Settings extends Serializable
- object StreamPublisher
- object StreamSubscriptionActor
- object SubscriptionActor
- object SubscriptionDropped extends Serializable
- object SubscriptionObserverActor
- object SystemEventType
- object TransactionActor
-
object
Unsubscribe extends Out with Product with Serializable
- Annotations
- @SerialVersionUID()
-
object
Unsubscribed extends In with Product with Serializable
- Annotations
- @SerialVersionUID()
- object UpdatePersistentSubscriptionError extends Serializable
- object UserCredentials extends Serializable
- object WriteEvents extends Serializable
- object WriteResult extends Serializable