congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Registration.getExpirationTimeStamp
Code IndexAdd Tabnine to your IDE (free)

How to use
getExpirationTimeStamp
method
in
org.eclipse.leshan.server.registration.Registration

Best Java code snippets using org.eclipse.leshan.server.registration.Registration.getExpirationTimeStamp (Showing top 4 results out of 315)

origin: eclipse/leshan

public long getExpirationTimeStamp() {
  return getExpirationTimeStamp(0L);
}
origin: eclipse/leshan

/**
 * This is the same idea than {@link Registration#isAlive()} but with a grace period. <br/>
 * 
 * @return true if the last registration update was done less than lifetime+gracePeriod seconds ago.
 */
public boolean isAlive(long gracePeriodInSec) {
  return getExpirationTimeStamp(gracePeriodInSec) > System.currentTimeMillis();
}
origin: eclipse/leshan

private void addOrUpdateExpiration(Jedis j, Registration registration) {
  j.zadd(EXP_EP, registration.getExpirationTimeStamp(gracePeriod), registration.getEndpoint().getBytes(UTF_8));
}
origin: org.eclipse.leshan/leshan-server-cluster

private void addOrUpdateExpiration(Jedis j, Registration registration) {
  j.zadd(EXP_EP, registration.getExpirationTimeStamp(gracePeriod), registration.getEndpoint().getBytes(UTF_8));
}
org.eclipse.leshan.server.registrationRegistrationgetExpirationTimeStamp

Popular methods of Registration

  • getEndpoint
  • getId
  • getIdentity
  • getAdditionalRegistrationAttributes
  • getBindingMode
  • getLifeTimeInSec
  • getLwM2mVersion
  • getRegistrationDate
  • getRegistrationEndpointAddress
  • getRootPath
  • getSmsNumber
  • isAlive
  • getSmsNumber,
  • isAlive,
  • usesQueueMode,
  • getLastUpdate,
  • getObjectLinks,
  • getSocketAddress,
  • <init>,
  • getAddress,
  • getPort

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • 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
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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