Package org.zalando.sprocwrapper
Annotation Interface SProcCall
- Author:
- jmussler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic enum -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionlongbooleanrun sproc on multiple shards in parallel?booleanflag this stored procedure call as read only: read only sprocs may run in cases were writing calls would not be allowed (maintenance, migration, ..)Class<?> booleanwhether the stored procedure should be called on all shards --- results are concatenated together.booleanwhether the stored procedure should be called on all shards --- return the first result found.Defines how sharded writes will be handled.Class<?> long
-
Element Details
-
name
String name- Default:
""
-
sql
String sql- Default:
""
-
shardStrategy
Class<?> shardStrategy- Default:
java.lang.Void.class
-
runOnAllShards
boolean runOnAllShardswhether the stored procedure should be called on all shards --- results are concatenated together.- Returns:
- Default:
false
-
searchShards
boolean searchShardswhether the stored procedure should be called on all shards --- return the first result found.- Returns:
- Default:
false
-
parallel
boolean parallelrun sproc on multiple shards in parallel?- Returns:
- Default:
false
-
readOnly
boolean readOnlyflag this stored procedure call as read only: read only sprocs may run in cases were writing calls would not be allowed (maintenance, migration, ..)- Returns:
- Default:
true
-
shardedWriteTransaction
SProcCall.WriteTransaction shardedWriteTransactionDefines how sharded writes will be handled. If set toSProcCall.WriteTransaction.NONE, no transaction context will be created. If set toSProcCall.WriteTransaction.ONE_PHASE, all errors during the sproc call will be rolled back. If set toSProcCall.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:
USE_FROM_SERVICE
-
resultMapper
Class<?> resultMapper- Default:
java.lang.Void.class
-
timeoutInMilliSeconds
long timeoutInMilliSeconds- Default:
0L
-
adivsoryLockId
long adivsoryLockId- Default:
0L
-
adivsoryLockName
String adivsoryLockName- Default:
"NO_LOCK"
-
validate
SProcCall.Validate validate- Default:
AS_DEFINED_IN_SERVICE
-