Skip to content

Commit

Permalink
Add missing methods to EventStoreSyncConnection interface
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Dec 6, 2018
1 parent 39f6324 commit f7f604e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/EventStoreSyncConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
namespace Prooph\EventStoreClient;

use Prooph\EventStoreClient\Internal\ListenerHandler;
use Prooph\EventStoreClient\Internal\PersistentSubscriptionCreateResult;
use Prooph\EventStoreClient\Internal\PersistentSubscriptionDeleteResult;
use Prooph\EventStoreClient\Internal\PersistentSubscriptionUpdateResult;

interface EventStoreSyncConnection
{
Expand Down Expand Up @@ -122,6 +125,29 @@ public function getRawStreamMetadata(string $stream, ?UserCredentials $userCrede

public function setSystemSettings(SystemSettings $settings, ?UserCredentials $userCredentials = null): WriteResult;

/** @throws Throwable */
public function createPersistentSubscription(
string $stream,
string $groupName,
PersistentSubscriptionSettings $settings,
?UserCredentials $userCredentials = null
): PersistentSubscriptionCreateResult;

/** @throws Throwable */
public function updatePersistentSubscription(
string $stream,
string $groupName,
PersistentSubscriptionSettings $settings,
?UserCredentials $userCredentials = null
): PersistentSubscriptionUpdateResult;

/** @throws Throwable */
public function deletePersistentSubscription(
string $stream,
string $groupName,
?UserCredentials $userCredentials = null
): PersistentSubscriptionDeleteResult;

public function startTransaction(
string $stream,
int $expectedVersion,
Expand Down

0 comments on commit f7f604e

Please sign in to comment.