• Platform
    • Manager
    • Maestro
    • Exchange
    • Workspaces
    • Analytics
    • Springboard
    • API
Journey SDK

Journey SDK

  • Getting Started
  • Developer Guide
  • References
  • Services Guide

›Classes

com.avoka.tm.func

  • com.avoka.tm.func
  • Classes

    • Class DeliveryFuncResult
    • Class DeliveryFuncResultBuilder
    • Class FormFuncResult
    • Class FuncParam

    Interface

    • Interface IFluentFunction

com.avoka.tm.http

  • com.avoka.tm.http
  • Classes

    • Class DeleteRequest
    • Class GetRequest
    • Class HttpRequest
    • Class HttpRequest.FileParam
    • Class HttpRequest.Param
    • Class HttpResponse
    • Class PatchRequest
    • Class PostRequest
    • Class PutRequest
    • Class RequestBuilder

com.avoka.tm.job

  • com.avoka.tm.job
  • Classes

    • Class ActionResult
    • Class ActionResultBuilder
    • Class Jobs

com.avoka.tm.query

  • com.avoka.tm.query
  • Classes

    • Class JobQuery
    • Class PropertyQuery
    • Class RefDataQuery
    • Class SpaceQuery
    • Class SvcConnQuery
    • Class SvcDefQuery
    • Class TxnHistoryQuery
    • Class TxnQuery
    • Class UserQuery

    Enum

    • Enum TxnHistoryQuery.Time
    • Enum TxnQuery.Time

com.avoka.tm.security

  • com.avoka.tm.security
  • Classes

    • Class Saml2Parser
    • Class Saml2ParserResult
    • Class SsoAuthToken

com.avoka.tm.svc

  • com.avoka.tm.svc
  • Classes

    • Class DeliveryTxnBuilder
    • Class Emailer
    • Class ErrorLogger
    • Class EventLogger
    • Class FluentFuncInvoker
    • Class GroovyServiceInvoker
    • Class JobUpdater
    • Class PropertyBuilder
    • Class ReceiptSvc
    • Class RefDataSvc
    • Class ServiceInvoker
    • Class SvcConnUpdater
    • Class TrackingCodeBuilder
    • Class TxnBuilder
    • Class TxnCheckpointSvc
    • Class TxnUpdater
    • Class UserBuilder

com.avoka.tm.test

  • com.avoka.tm.test
  • Classes

    • Class AbstractJUnitTest
    • Class JUnitTestRunner
    • Class JUnitTestRunner.TestWrapper
    • Class MockRegister
    • Class MockRequest
    • Class MockResponse
    • Class MockServletContext
    • Class MockVoBuilder

    Exception

    • junittestexception

com.avoka.tm.util

  • com.avoka.tm.util
  • Classes

    • Class Contract
    • Class DeliveryResult
    • Class DeliveryResultBuilder
    • Class Logger
    • Class MemCache
    • Class ObjectMapper
    • Class Path
    • Class Security
    • Class Threads
    • Class TxnUrlBuilder
    • Class VelTemplate
    • Class XmlDoc

    Enum

    • Enum ObjectMapper.MappingStrategy

    Exception

    • redirectexception

com.avoka.tm.vo

  • com.avoka.tm.vo
  • Classes

    • Class FileAttach
    • Class Form
    • Class Job
    • Class JobAction
    • Class JobStep
    • Class Space
    • Class SvcConn
    • Class SvcDef
    • Class Txn
    • Class TxnCheckpoint
    • Class TxnDeliveryFunc
    • Class User

Class MemCache

public class MemCache
extends java.lang.Object
Provides an in memory cache for high frequency read only access values. Cached values are keyed on the specified cache key and the executing service's Organization security context. When using the memory cache ensure you do not put excessively large values in the cache which would impact the application servers memory usage. Examples

Put Value in Cache

This examples puts a value in the cache with a 12 hour timeout (720 mins).
 import com.avoka.tm.util.*
 String value = "some big and expensive data..."
 new MemCache()
     .setKey("Ref Data")
     .setTimeout(720)
     .setValue(value) 

Get Value from Cache

This examples gets a value from the cache with a 12 hour cache timeout (720 mins).
 import com.avoka.tm.util.*
 String value = new MemCache()
     .setKey("Ref Data")
     .setTimeout(720)
     .getValue() 
Since:
5.0.0
See Also:
PropertyQuery

Constructor Summary

Constructors
Constructor Description
MemCache()

Method Summary

All Methods Instance Methods Concrete Methods
Modifier and Type Method Description
java.lang.Object getValue() Return the memory cached object, or null if not found or has expired.
MemCache setKey​(java.lang.String key) Set the mem cache key parameter.
MemCache setTimeout​(int timeoutMins) Set the mem cache timeout in minutes.
void setValue​(java.lang.Object value) Set the value to cache in memory with the specified key and cacheTimeout properties.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

MemCache

public MemCache()

Method Detail

setKey

public MemCache setKey​(java.lang.String key) Set the mem cache key parameter.
Parameters:
key - the cache key
Returns:
the mem cache

setTimeout

public MemCache setTimeout​(int timeoutMins) Set the mem cache timeout in minutes.
Parameters:
timeoutMins - the mem cache timeout in minutes, must be a positive value.
Returns:
the mem cache

getValue

public java.lang.Object getValue() Return the memory cached object, or null if not found or has expired.
Returns:
the memory cached object, or null if not found or has expired.

setValue

public void setValue​(java.lang.Object value) Set the value to cache in memory with the specified key and cacheTimeout properties.
Parameters:
value - the value to set in the cache for the specified key and cacheTimeout property
← Class LoggerClass ObjectMapper →

Terms & Conditions

Privacy Policy

Cookie Policy

Copyright © 2003-2022 Temenos Headquarters SA