Module lettuce.core

Interface NodeSelectionServerCommands<K,​V>

Type Parameters:
K - Key type.
V - Value type.
All Known Subinterfaces:
NodeSelectionCommands<K,​V>

public interface NodeSelectionServerCommands<K,​V>
Synchronous executed commands on a node selection for Server Control.
Since:
4.0
Author:
Mark Paluch
Generated class:
by io.lettuce.apigenerator.CreateSyncNodeSelectionClusterApi
  • Method Details

    • bgrewriteaof

      Executions<String> bgrewriteaof()
      Asynchronously rewrite the append-only file.
      Returns:
      String simple-string-reply always OK.
    • bgsave

      Executions<String> bgsave()
      Asynchronously save the dataset to disk.
      Returns:
      String simple-string-reply.
    • clientCaching

      Executions<String> clientCaching​(boolean enabled)
      Control tracking of keys in the context of server-assisted client cache invalidation.
      Parameters:
      enabled - true to enable key tracking.
      Returns:
      String simple-string-reply OK.
      Since:
      6.0
    • clientGetname

      Executions<K> clientGetname()
      Get the current connection name.
      Returns:
      K bulk-string-reply The connection name, or a null bulk reply if no name is set.
    • clientGetredir

      Executions<Long> clientGetredir()
      Returns the client ID we are redirecting our tracking notifications to.
      Returns:
      the ID of the client we are redirecting the notifications to. The command returns -1 if client tracking is not enabled, or 0 if client tracking is enabled but we are not redirecting the notifications to any client.
      Since:
      6.0
    • clientId

      Executions<Long> clientId()
      Get the id of the current connection.
      Returns:
      Long The command just returns the ID of the current connection.
      Since:
      5.3
    • clientKill

      Executions<String> clientKill​(String addr)
      Kill the connection of a client identified by ip:port.
      Parameters:
      addr - ip:port.
      Returns:
      String simple-string-reply OK if the connection exists and has been closed.
    • clientKill

      Executions<Long> clientKill​(KillArgs killArgs)
      Kill connections of clients which are filtered by killArgs.
      Parameters:
      killArgs - args for the kill operation.
      Returns:
      Long integer-reply number of killed connections.
    • clientList

      Executions<String> clientList()
      Get the list of client connections.
      Returns:
      String bulk-string-reply a unique string, formatted as follows: One client connection per line (separated by LF), each line is composed of a succession of property=value fields separated by a space character.
    • clientPause

      Executions<String> clientPause​(long timeout)
      Stop processing commands from clients for some time.
      Parameters:
      timeout - the timeout value in milliseconds.
      Returns:
      String simple-string-reply The command returns OK or an error if the timeout is invalid.
    • clientSetname

      Executions<String> clientSetname​(K name)
      Set the current connection name.
      Parameters:
      name - the client name.
      Returns:
      simple-string-reply OK if the connection name was successfully set.
    • clientTracking

      Executions<String> clientTracking​(TrackingArgs args)
      Enables the tracking feature of the Redis server, that is used for server assisted client side caching. Tracking messages are either available when using the RESP3 protocol or through Pub/Sub notification when using RESP2.
      Parameters:
      args - for the CLIENT TRACKING operation.
      Returns:
      String simple-string-reply OK.
      Since:
      6.0
    • clientUnblock

      Executions<Long> clientUnblock​(long id, UnblockType type)
      Unblock the specified blocked client.
      Parameters:
      id - the client id.
      type - unblock type.
      Returns:
      Long integer-reply number of unblocked connections.
      Since:
      5.1
    • command

      Executions<List<Object>> command()
      Returns an array reply of details about all Redis commands.
      Returns:
      List<Object> array-reply.
    • commandCount

      Executions<Long> commandCount()
      Get total number of Redis commands.
      Returns:
      Long integer-reply of number of total commands in this Redis server.
    • commandInfo

      Executions<List<Object>> commandInfo​(String... commands)
      Returns an array reply of details about the requested commands.
      Parameters:
      commands - the commands to query for.
      Returns:
      List<Object> array-reply.
    • commandInfo

      Executions<List<Object>> commandInfo​(CommandType... commands)
      Returns an array reply of details about the requested commands.
      Parameters:
      commands - the commands to query for.
      Returns:
      List<Object> array-reply.
    • configGet

      Executions<Map<String,​String>> configGet​(String parameter)
      Get the value of a configuration parameter.
      Parameters:
      parameter - name of the parameter.
      Returns:
      Map<String, String> bulk-string-reply.
    • configResetstat

      Executions<String> configResetstat()
      Reset the stats returned by INFO.
      Returns:
      String simple-string-reply always OK.
    • configRewrite

      Executions<String> configRewrite()
      Rewrite the configuration file with the in memory configuration.
      Returns:
      String simple-string-reply OK when the configuration was rewritten properly. Otherwise an error is returned.
    • configSet

      Executions<String> configSet​(String parameter, String value)
      Set a configuration parameter to the given value.
      Parameters:
      parameter - the parameter name.
      value - the parameter value.
      Returns:
      String simple-string-reply: OK when the configuration was set properly. Otherwise an error is returned.
    • dbsize

      Executions<Long> dbsize()
      Return the number of keys in the selected database.
      Returns:
      Long integer-reply.
    • debugCrashAndRecover

      Executions<String> debugCrashAndRecover​(Long delay)
      Crash and recover.
      Parameters:
      delay - optional delay in milliseconds.
      Returns:
      String simple-string-reply.
    • debugHtstats

      Executions<String> debugHtstats​(int db)
      Get debugging information about the internal hash-table state.
      Parameters:
      db - the database number.
      Returns:
      String simple-string-reply.
    • debugObject

      Executions<String> debugObject​(K key)
      Get debugging information about a key.
      Parameters:
      key - the key.
      Returns:
      String simple-string-reply.
    • debugReload

      Executions<String> debugReload()
      Save RDB, clear the database and reload RDB.
      Returns:
      String simple-string-reply The commands returns OK on success.
    • debugRestart

      Executions<String> debugRestart​(Long delay)
      Restart the server gracefully.
      Parameters:
      delay - optional delay in milliseconds.
      Returns:
      String simple-string-reply.
    • debugSdslen

      Executions<String> debugSdslen​(K key)
      Get debugging information about the internal SDS length.
      Parameters:
      key - the key.
      Returns:
      String simple-string-reply.
    • flushall

      Executions<String> flushall()
      Remove all keys from all databases.
      Returns:
      String simple-string-reply.
    • flushall

      Executions<String> flushall​(FlushMode flushMode)
      Remove all keys from all databases using the specified FlushMode.
      Parameters:
      flushMode - the flush mode (sync/asnync).
      Returns:
      String simple-string-reply.
      Since:
      6.1
    • flushallAsync

      @Deprecated Executions<String> flushallAsync()
      Deprecated.
      since 6.1, use flushall(FlushMode) instead.
      Remove all keys asynchronously from all databases.
      Returns:
      String simple-string-reply.
    • flushdb

      Executions<String> flushdb()
      Remove all keys from the current database.
      Returns:
      String simple-string-reply.
    • flushdb

      Executions<String> flushdb​(FlushMode flushMode)
      Remove all keys from the current database using the specified FlushMode.
      Parameters:
      flushMode - the flush mode (sync/asnync).
      Returns:
      String simple-string-reply.
      Since:
      6.1
    • flushdbAsync

      @Deprecated Executions<String> flushdbAsync()
      Deprecated.
      since 6.1, use flushdb(FlushMode) instead.
      Remove all keys asynchronously from the current database.
      Returns:
      String simple-string-reply.
    • info

      Get information and statistics about the server.
      Returns:
      String bulk-string-reply as a collection of text lines.
    • info

      Executions<String> info​(String section)
      Get information and statistics about the server.
      Parameters:
      section - the section type: string.
      Returns:
      String bulk-string-reply as a collection of text lines.
    • lastsave

      Executions<Date> lastsave()
      Get the UNIX time stamp of the last successful save to disk.
      Returns:
      Date integer-reply an UNIX time stamp.
    • memoryUsage

      Executions<Long> memoryUsage​(K key)
      Reports the number of bytes that a key and its value require to be stored in RAM.
      Returns:
      memory usage in bytes.
      Since:
      5.2
    • save

      Synchronously save the dataset to disk.
      Returns:
      String simple-string-reply The commands returns OK on success.
    • slaveof

      Executions<String> slaveof​(String host, int port)
      Make the server a replica of another instance, or promote it as master.
      Parameters:
      host - the host type: string.
      port - the port type: string.
      Returns:
      String simple-string-reply.
    • slaveofNoOne

      Executions<String> slaveofNoOne()
      Promote server as master.
      Returns:
      String simple-string-reply.
    • slowlogGet

      Executions<List<Object>> slowlogGet()
      Read the slow log.
      Returns:
      List<Object> deeply nested multi bulk replies.
    • slowlogGet

      Executions<List<Object>> slowlogGet​(int count)
      Read the slow log.
      Parameters:
      count - the count.
      Returns:
      List<Object> deeply nested multi bulk replies.
    • slowlogLen

      Executions<Long> slowlogLen()
      Obtaining the current length of the slow log.
      Returns:
      Long length of the slow log.
    • slowlogReset

      Executions<String> slowlogReset()
      Resetting the slow log.
      Returns:
      String simple-string-reply The commands returns OK on success.
    • time

      Executions<List<V>> time()
      Return the current server time.
      Returns:
      List<V> array-reply specifically: A multi bulk reply containing two elements: unix time in seconds. microseconds.