Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing methods to EventStoreSyncConnection interface #61

Merged
merged 1 commit into from
Dec 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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