Tabnine Logo
RedissonClient.getLiveObjectService
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Collectors (java.util.stream)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now