@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface SProcService
| Modifier and Type | Optional Element and Description |
|---|---|
String |
namespace |
SProcService.WriteTransaction |
shardedWriteTransaction
Defines how sharded writes will be handled.
|
Class<?> |
shardStrategy |
boolean |
validate |
public abstract Class<?> shardStrategy
public abstract String namespace
public abstract SProcService.WriteTransaction shardedWriteTransaction
SProcService.WriteTransaction.NONE, no transaction context will
be created. If set to SProcService.WriteTransaction.ONE_PHASE, all errors during the sproc call will be rolled back.
If set to SProcService.WriteTransaction.TWO_PHASE, all errors during sproc call and "prepare transaction" are rolled
back. In the last case, the Postgres instance must be configured to manage 2-phase-commits (XA).Copyright © 2012–2021 Zalando SE. All rights reserved.