use of fr.lelouet.tools.holders.impl.ObjHolderSimple in project JCELechat by guiguilechat.
the class Characters method mail.
/**
* Return the contents of an EVE mail
*
* cache over {@link Swagger#get_characters_mail}<br />
*
* @param character_id
* An EVE character ID
* @param mail_id
* An EVE mail ID
*/
public ObjHolder<R_get_characters_character_id_mail_mail_id> mail(int character_id, int mail_id) {
K_5_int_int param = new K_5_int_int(mail_id, character_id);
ObjHolderSimple<R_get_characters_character_id_mail_mail_id> ret = get_characters_character_id_mail_mail_id_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_characters_character_id_mail_mail_id_holder);
try {
synchronized (get_characters_character_id_mail_mail_id_holder) {
LockWatchDog.BARKER.hld(get_characters_character_id_mail_mail_id_holder);
{
ret = get_characters_character_id_mail_mail_id_holder.get(param);
if (ret == null) {
ret = new ObjHolderSimple<R_get_characters_character_id_mail_mail_id>();
ObjHolderSimple<R_get_characters_character_id_mail_mail_id> finalRet = ret;
get_characters_character_id_mail_mail_id_holder.put(param, ret);
(cache).addFetchCacheObject("get_characters_character_id_mail_mail_id", properties -> (cache.swagger).get_characters_mail(character_id, mail_id, properties), item -> finalRet.set(item));
}
}
LockWatchDog.BARKER.rel(get_characters_character_id_mail_mail_id_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_characters_character_id_mail_mail_id_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.ObjHolderSimple in project JCELechat by guiguilechat.
the class Characters method calendar.
/**
* Get all the information for a specific event
*
* cache over {@link Swagger#get_characters_calendar}<br />
*
* @param character_id
* An EVE character ID
* @param event_id
* The id of the event requested
*/
public ObjHolder<R_get_characters_character_id_calendar_event_id> calendar(int character_id, int event_id) {
K_1_int_int param = new K_1_int_int(event_id, character_id);
ObjHolderSimple<R_get_characters_character_id_calendar_event_id> ret = get_characters_character_id_calendar_event_id_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_characters_character_id_calendar_event_id_holder);
try {
synchronized (get_characters_character_id_calendar_event_id_holder) {
LockWatchDog.BARKER.hld(get_characters_character_id_calendar_event_id_holder);
{
ret = get_characters_character_id_calendar_event_id_holder.get(param);
if (ret == null) {
ret = new ObjHolderSimple<R_get_characters_character_id_calendar_event_id>();
ObjHolderSimple<R_get_characters_character_id_calendar_event_id> finalRet = ret;
get_characters_character_id_calendar_event_id_holder.put(param, ret);
(cache).addFetchCacheObject("get_characters_character_id_calendar_event_id", properties -> (cache.swagger).get_characters_calendar(character_id, event_id, properties), item -> finalRet.set(item));
}
}
LockWatchDog.BARKER.rel(get_characters_character_id_calendar_event_id_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_characters_character_id_calendar_event_id_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.ObjHolderSimple in project JCELechat by guiguilechat.
the class Corporations method starbases.
/**
* Returns various settings and fuels of a starbase (POS)
*
* cache over {@link Swagger#get_corporations_starbases}<br />
*
* @param corporation_id
* An EVE corporation ID
* @param starbase_id
* An EVE starbase (POS) ID
* @param system_id
* The solar system this starbase (POS) is located in,
*/
public ObjHolder<R_get_corporations_corporation_id_starbases_starbase_id> starbases(int corporation_id, long starbase_id, int system_id) {
K_16_int_long_int param = new K_16_int_long_int(corporation_id, starbase_id, system_id);
ObjHolderSimple<R_get_corporations_corporation_id_starbases_starbase_id> ret = get_corporations_corporation_id_starbases_starbase_id_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_corporations_corporation_id_starbases_starbase_id_holder);
try {
synchronized (get_corporations_corporation_id_starbases_starbase_id_holder) {
LockWatchDog.BARKER.hld(get_corporations_corporation_id_starbases_starbase_id_holder);
{
ret = get_corporations_corporation_id_starbases_starbase_id_holder.get(param);
if (ret == null) {
ret = new ObjHolderSimple<R_get_corporations_corporation_id_starbases_starbase_id>();
ObjHolderSimple<R_get_corporations_corporation_id_starbases_starbase_id> finalRet = ret;
get_corporations_corporation_id_starbases_starbase_id_holder.put(param, ret);
(cache).addFetchCacheObject("get_corporations_corporation_id_starbases_starbase_id", properties -> (cache.swagger).get_corporations_starbases(corporation_id, starbase_id, system_id, properties), item -> finalRet.set(item), new String[] { "Director" });
}
}
LockWatchDog.BARKER.rel(get_corporations_corporation_id_starbases_starbase_id_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_corporations_corporation_id_starbases_starbase_id_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.ObjHolderSimple in project JCELechat by guiguilechat.
the class Killmails method get.
/**
* Return a single killmail from its ID and hash
*
* cache over {@link Swagger#get_killmails}<br />
*
* @param killmail_hash
* The killmail hash for verification
* @param killmail_id
* The killmail ID to be queried
*/
public ObjHolder<R_get_killmails_killmail_id_killmail_hash> get(String killmail_hash, int killmail_id) {
K_12_String_int param = new K_12_String_int(killmail_hash, killmail_id);
ObjHolderSimple<R_get_killmails_killmail_id_killmail_hash> ret = get_killmails_killmail_id_killmail_hash_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_killmails_killmail_id_killmail_hash_holder);
try {
synchronized (get_killmails_killmail_id_killmail_hash_holder) {
LockWatchDog.BARKER.hld(get_killmails_killmail_id_killmail_hash_holder);
{
ret = get_killmails_killmail_id_killmail_hash_holder.get(param);
if (ret == null) {
ret = new ObjHolderSimple<R_get_killmails_killmail_id_killmail_hash>();
ObjHolderSimple<R_get_killmails_killmail_id_killmail_hash> finalRet = ret;
get_killmails_killmail_id_killmail_hash_holder.put(param, ret);
(cache).addFetchCacheObject("get_killmails_killmail_id_killmail_hash", properties -> (cache.swagger).get_killmails(killmail_hash, killmail_id, properties), item -> finalRet.set(item));
}
}
LockWatchDog.BARKER.rel(get_killmails_killmail_id_killmail_hash_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_killmails_killmail_id_killmail_hash_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.ObjHolderSimple in project JCELechat by guiguilechat.
the class Search method get.
/**
* Search for entities that match a given sub-string.
*
* cache over {@link Swagger#get}<br />
*
* @param categories
* Type of entities to search for
* @param search
* The string to search on
* @param strict
* Whether the search should be a strict match
*/
public ObjHolder<R_get_search> get(String[] categories, String search, Boolean strict) {
K_17_String_LString_Boolean param = new K_17_String_LString_Boolean(search, categories, strict);
ObjHolderSimple<R_get_search> ret = get_search_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_search_holder);
try {
synchronized (get_search_holder) {
LockWatchDog.BARKER.hld(get_search_holder);
{
ret = get_search_holder.get(param);
if (ret == null) {
ret = new ObjHolderSimple<R_get_search>();
ObjHolderSimple<R_get_search> finalRet = ret;
get_search_holder.put(param, ret);
(cache).addFetchCacheObject("get_search", properties -> (cache.swagger).get(categories, search, strict, properties), item -> finalRet.set(item));
}
}
LockWatchDog.BARKER.rel(get_search_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_search_holder);
}
}
return ret;
}
Aggregations