Package org.zalando.sprocwrapper
Annotation Type SProcService
-
@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface SProcService
- Author:
- jmussler
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringnamespaceSProcService.WriteTransactionshardedWriteTransactionDefines how sharded writes will be handled.Class<?>shardStrategybooleanvalidate
-
-
-
Element Detail
-
shardStrategy
Class<?> shardStrategy
- Default:
- org.zalando.sprocwrapper.sharding.VirtualShardKeyStrategy.class
-
-
-
namespace
String namespace
- Default:
- ""
-
-
-
shardedWriteTransaction
SProcService.WriteTransaction shardedWriteTransaction
Defines how sharded writes will be handled. If set toSProcService.WriteTransaction.NONE, no transaction context will be created. If set toSProcService.WriteTransaction.ONE_PHASE, all errors during the sproc call will be rolled back. If set toSProcService.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).- Default:
- org.zalando.sprocwrapper.SProcService.WriteTransaction.NONE
-
-