Codota Logo
RedissonClient.getLiveObjectService
Code IndexAdd Codota to your IDE (free)

How to use
getLiveObjectService
method
in
org.redisson.api.RedissonClient

Best Java code snippets using org.redisson.api.RedissonClient.getLiveObjectService (Showing top 4 results out of 315)

  • Common ways to obtain RedissonClient
private void myMethod () {
RedissonClient r =
  • Codota IconConfig config;Redisson.create(config)
  • Codota IconRedisson.create()
  • Smart code suggestions by Codota
}
origin: redisson/redisson

public Object fromReference(RedissonClient redisson, RedissonReference rr) throws Exception {
  Class<? extends Object> type = rr.getType();
  if (type != null) {
    if (ClassUtils.isAnnotationPresent(type, REntity.class)) {
      RedissonLiveObjectService liveObjectService = (RedissonLiveObjectService) redisson.getLiveObjectService();
      
      NamingScheme ns = getNamingScheme(type);
      Object id = ns.resolveId(rr.getKeyName());
      return liveObjectService.createLiveObject(type, id);
    }
  }
  return getObject(redisson, rr, type, codecProvider);
}
origin: redisson/redisson

public Object fromReference(RedissonClient redisson, RedissonReference rr) throws Exception {
  Class<? extends Object> type = rr.getType();
  if (type != null) {
    if (ClassUtils.isAnnotationPresent(type, REntity.class)) {
      RedissonLiveObjectService liveObjectService = (RedissonLiveObjectService) redisson.getLiveObjectService();
      
      NamingScheme ns = getNamingScheme(type);
      Object id = ns.resolveId(rr.getKeyName());
      return liveObjectService.createLiveObject(type, id);
    }
  }
  return getObject(redisson, rr, type, codecProvider);
}
origin: org.redisson/redisson

public Object fromReference(RedissonClient redisson, RedissonReference rr) throws Exception {
  Class<? extends Object> type = rr.getType();
  if (type != null) {
    if (ClassUtils.isAnnotationPresent(type, REntity.class)) {
      RedissonLiveObjectService liveObjectService = (RedissonLiveObjectService) redisson.getLiveObjectService();
      
      NamingScheme ns = getNamingScheme(type);
      Object id = ns.resolveId(rr.getKeyName());
      return liveObjectService.createLiveObject(type, id);
    }
  }
  return getObject(redisson, rr, type, codecProvider);
}
origin: redisson/redisson-examples

RLiveObjectService liveObjectService = redisson.getLiveObjectService();
org.redisson.apiRedissonClientgetLiveObjectService

Javadoc

Returns RedissonAttachedLiveObjectService which can be used to retrieve live REntity(s)

Popular methods of RedissonClient

  • shutdown
    Shuts down Redisson instance but NOT Redis server Shutdown ensures that no tasks are submitted for '
  • getMap
    Returns map instance by name using provided codec for both map keys and values.
  • getLock
    Returns lock instance by name. Implements a non-fair locking so doesn't guarantees an acquire order
  • getTopic
    Returns topic instance by name using provided codec for messages.
  • getBucket
    Returns object holder instance by name using provided codec for object.
  • getConfig
    Allows to get configuration provided during Redisson instance creation. Further changes on this obje
  • getMapCache
    Returns map-based cache instance by name using provided codec for both cache keys and values. Suppor
  • getAtomicLong
    Returns atomicLong instance by name.
  • getKeys
    Returns interface with methods for Redis keys. Each of Redis/Redisson object associated with own key
  • getScript
    Returns script operations object using provided codec.
  • getSemaphore
    Returns semaphore instance by name
  • getSet
    Returns set instance by name using provided codec for set objects.
  • getSemaphore,
  • getSet,
  • getBlockingQueue,
  • getList,
  • getScoredSortedSet,
  • getExecutorService,
  • getFairLock,
  • getQueue,
  • getReadWriteLock,
  • getListMultimap

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now