Skip to content

Commit

Permalink
Remove watch and unwatch from Transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Mar 31, 2021
1 parent d920eb4 commit 4dab6f1
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/main/java/redis/clients/jedis/Transaction.java
Expand Up @@ -91,30 +91,4 @@ public void setClient(Client client) {
public void close() {
clear();
}

private static final String WATCH_INSIDE_MULTI_MESSAGE = "WATCH inside MULTI is not allowed";

/**
* @param keys
* @return
* @throws UnsupportedOperationException
* @deprecated {@value #WATCH_INSIDE_MULTI_MESSAGE}
*/
@Override
@Deprecated
public Response<String> watch(String... keys) throws UnsupportedOperationException {
throw new UnsupportedOperationException(WATCH_INSIDE_MULTI_MESSAGE);
}

/**
* @param keys
* @return
* @throws UnsupportedOperationException
* @deprecated {@value #WATCH_INSIDE_MULTI_MESSAGE}
*/
@Override
@Deprecated
public Response<String> watch(byte[]... keys) throws UnsupportedOperationException {
throw new UnsupportedOperationException(WATCH_INSIDE_MULTI_MESSAGE);
}
}

0 comments on commit 4dab6f1

Please sign in to comment.